package com.fjl.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

// 1. 应用入口，注册 ApplicationContextInitializer 示例
@SpringBootApplication
@Import({MyImportBeanDefinitionRegistrar.class, MyDeferredImportSelector.class})
public class LifecycleDemoApplication {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(LifecycleDemoApplication.class);
        app.addInitializers(new MyApplicationContextInitializer());
        app.run(args);
    }
}